package com.directv.z8training.ex5;

/**
 * @author HieuLT8
 *
 */
public class Counter {
	public static Counter counter = new Counter();
	
	public int count = 1;
	
	public Counter() {
	}

	public void count() {
		
		System.out.println("Show all: " + count);
	}

	public static Counter getCounter() {
		return counter;
	}

	public static void setCounter(Counter counter) {
		Counter.counter = counter;
	}

	public int getCount() {
		return count++;
	}

	public void setCount(int count) {
		this.count = count;
	}
}
